package org.dakuo.sgfyController;

import java.io.IOException;

import javax.servlet.http.*;
import javax.servlet.*;

import org.dakuo.sgfyModel.SgfyGame;

/**
 * Servlet implementation class NewGameController
 */
public class NewGameController extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
	public void doGet (HttpServletRequest req,HttpServletResponse res)
	throws ServletException, IOException
	{
		/*
		 * 
		 * "testMode = true" means the game mode is TestMode,
		 * The dictionary is TestMode dictionary
		 * The word is random generated from the dictionary
		 */
		SgfyGame g = new SgfyGame("","","");
		req.getSession().setAttribute("game", g);
		req.setCharacterEncoding("UTF-8");
		RequestDispatcher rd = req.getRequestDispatcher("LoginForm.jsp");
		rd.forward(req, res);
		
	}


}
